import { ref, onMounted } from 'vue'

export function getTableHright(height: number) {
    const getHeight = ref(0)
    const setTableHeight = () => {
        const tableheight = window.innerHeight - height
        getHeight.value = tableheight
    }

    onMounted(() => {
        window.onresize = setTableHeight
        setTableHeight()
    })

    return{
        getHeight
    }
}
